package com.day24.Reflect;

public class Student {
    private String name;
    int age;
    public String address;
    public Student(){}
    private Student(String name){
        this.name=name;
    }
    Student(String name,int age){
        this.name=name;
        this.age=age;
        this.address=address;
    }
    private void fumction(){
        System.out.println("method");
    }
    public void method1(){
        System.out.println("method");
    }
    public void method2(String s){
        System.out.println("method:"+s);
    }
    public String method3(String s,int i){
        return s+","+i;
    }
    @Override
    public String toString (){
        return "Student{"+"name='"+name+'\''+",age="+age+",address='"+address+'\''+'}';

    }
}
